/**
 * Subset of an OIDC Discovery document relevant for identity provider
 * creation.
 */
export interface OidcDiscoveryResult {
    readonly issuer: string;
    readonly jwksUri: string;
    readonly userinfoEndpoint?: string;
}
/** Return value of {@link useOidcDiscovery}. */
export interface UseOidcDiscoveryReturn {
    /**
     * Fetch the OIDC Discovery document for the given issuer URL.
     *
     * Resolves with the parsed result on success, or `null` when the
     * fetch fails (CORS, network, invalid document). Error details are
     * available via the `error` property.
     */
    readonly discover: (issuerUrl: string) => Promise<OidcDiscoveryResult | null>;
    /** `true` while a discovery fetch is in flight. */
    readonly isDiscovering: boolean;
    /** Error from the last failed discovery, or `null` when healthy. */
    readonly error: Error | null;
}
/**
 * Behavior hook that fetches an OIDC Discovery document from the
 * browser.
 *
 * Used by the "Custom OIDC" path in the identity provider creation
 * wizard. The hook exposes an imperative `discover()` function
 * (rather than an effect-based pattern) because discovery is
 * triggered by user action ("Continue"), not by render.
 *
 * CORS may block the fetch for some providers. When this happens
 * the hook returns `null` from `discover()` and populates `error`
 * so the wizard can fall back to manual configuration.
 */
export declare function useOidcDiscovery(): UseOidcDiscoveryReturn;
//# sourceMappingURL=useOidcDiscovery.d.ts.map