import { type ResourceListScope } from "../search";
/** Options for {@link useSkillCount}. */
export interface UseSkillCountOptions {
    /** Text query to filter skills before counting. */
    readonly query?: string;
    /**
     * Controls which skills are counted.
     *
     * - `"org"` — only skills owned by the given organization.
     * - `"all"` — includes public/platform skills.
     *
     * @default "org"
     */
    readonly scope?: ResourceListScope;
}
/** Return value of {@link useSkillCount}. */
export interface UseSkillCountReturn {
    /**
     * Total number of skills matching the current filters. `undefined`
     * until the first successful fetch completes.
     */
    readonly count: number | undefined;
    /** `true` while the count fetch is in flight. */
    readonly isLoading: boolean;
    /** Error message from the last failed request, or `null` when healthy. */
    readonly error: Error | null;
    /** Discard cached data and re-fetch the count from the server. */
    readonly refetch: () => void;
}
/**
 * Data hook that fetches the total count of skills.
 *
 * Issues a minimal `stigmer.skill.list()` call to retrieve only the
 * total count — no skill entries are returned or stored. Useful for
 * summary cards, badges, and dashboard widgets.
 *
 * For the full paginated skill list, use {@link useSkillList} instead.
 *
 * Pass `null` as `org` to skip fetching (stable no-op).
 *
 * @example
 * ```tsx
 * const { count, isLoading } = useSkillCount("acme");
 * ```
 *
 * @example
 * ```tsx
 * // Count all accessible skills including public/platform ones
 * const { count } = useSkillCount("acme", { scope: "all" });
 * ```
 */
export declare function useSkillCount(org: string | null, options?: UseSkillCountOptions): UseSkillCountReturn;
//# sourceMappingURL=useSkillCount.d.ts.map