import type { UseMutation, UseLazyQuery, UseQuery } from './buildHooks'; import type { DefinitionType, EndpointDefinitions, MutationDefinition, QueryDefinition } from '@reduxjs/toolkit/query'; export declare type HooksWithUniqueNames = keyof Definitions extends infer Keys ? Keys extends string ? Definitions[Keys] extends { type: DefinitionType.query; } ? { [K in Keys as `use${Capitalize}Query`]: UseQuery>>; } & { [K in Keys as `useLazy${Capitalize}Query`]: UseLazyQuery>>; } : Definitions[Keys] extends { type: DefinitionType.mutation; } ? { [K in Keys as `use${Capitalize}Mutation`]: UseMutation>>; } : never : never : never;