import type { PlatformClient } from "@stigmer/protos/ai/stigmer/iam/platformclient/v1/api_pb";
/** Return value of {@link usePlatformClientList}. */
export interface UsePlatformClientListReturn {
    /** All platform clients for the organization. Empty while loading or on error. */
    readonly platformClients: readonly PlatformClient[];
    /** `true` while the initial fetch or a refetch is in flight. */
    readonly isLoading: boolean;
    /** `true` while a background refetch is in flight and stale data is shown. */
    readonly isRefetching: boolean;
    /** Error from the last failed request, or `null` when healthy. */
    readonly error: Error | null;
    /** Discard cached data and re-fetch from the server. */
    readonly refetch: () => void;
}
/**
 * Data hook that fetches all platform clients for an organization.
 *
 * Platform clients are admin-level resources with small cardinality
 * (typically 1–5 per org), so results are returned as a flat list
 * without pagination.
 *
 * Pass `null` to skip fetching (stable no-op). Call `refetch()` to
 * re-query after mutations (create / update / delete / rotateSecret).
 *
 * @example
 * ```tsx
 * function PlatformClientSettings({ org }: { org: string }) {
 *   const { platformClients, isLoading, error } = usePlatformClientList(org);
 *
 *   if (isLoading) return <Skeleton />;
 *   if (error) return <ErrorMessage error={error} />;
 *
 *   return (
 *     <ul>
 *       {platformClients.map((pc) => (
 *         <li key={pc.metadata?.id}>{pc.metadata?.name}</li>
 *       ))}
 *     </ul>
 *   );
 * }
 * ```
 */
export declare function usePlatformClientList(org: string | null): UsePlatformClientListReturn;
//# sourceMappingURL=usePlatformClientList.d.ts.map