import { GetAPIKeysParams } from "../../types/clerk.js"; import { APIKeyResource } from "../../types/apiKeys.js"; import { PaginatedHookConfig, PaginatedResources } from "../types.js"; //#region src/react/hooks/useAPIKeys.d.ts /** * @interface */ type UseAPIKeysParams = PaginatedHookConfig; /** * @interface */ type UseAPIKeysReturn = PaginatedResources; /** * The `useAPIKeys()` hook provides access to paginated API keys for the current user or organization. * * @example * ### Basic usage with default pagination * * ```tsx * const { data, isLoading, page, pageCount, fetchNext, fetchPrevious } = useAPIKeys({ * subject: 'user_123', * pageSize: 10, * initialPage: 1, * }); * ``` * * @example * ### With search query * * ```tsx * const [searchValue, setSearchValue] = useState(''); * const debouncedSearch = useDebounce(searchValue, 500); * * const { data, isLoading } = useAPIKeys({ * subject: 'user_123', * query: debouncedSearch.trim(), * pageSize: 10, * }); * ``` * * @example * ### Infinite scroll * * ```tsx * const { data, isLoading, fetchNext, hasNextPage } = useAPIKeys({ * subject: 'user_123', * infinite: true, * }); * ``` */ declare function useAPIKeys(params?: T): UseAPIKeysReturn; //#endregion export { useAPIKeys }; //# sourceMappingURL=useAPIKeys.d.ts.map