import type { AgentClientConfig } from '../../../index.js';
import type { AgentBackend } from '../backend.js';
export interface UseAgentConfigOptions {
    /** Default: the enclosing `<AgentProvider>`'s. Without `getConfig` the config stays `undefined`. */
    backend?: AgentBackend;
    /** `false` holds the request. Default `true`. */
    enabled?: boolean;
}
export interface AgentConfigState {
    /** `GET <base>/config`, once loaded — `undefined` before, on a failure, or on a backend without it. */
    config: AgentClientConfig | undefined;
    isLoading: boolean;
    error: Error | null;
}
/**
 * The server's client config (`GET <base>/config`): attachment limits and upload mode, and whether a
 * model picker, a quota and anonymous identities are in play. Fetched once per backend and shared;
 * `useAttachments` takes its defaults from it.
 */
export declare function useAgentConfig(options?: UseAgentConfigOptions): AgentConfigState;
//# sourceMappingURL=use-agent-config.d.ts.map