import type { ApiKey } from "@stigmer/protos/ai/stigmer/iam/apikey/v1/api_pb";
/** Props for {@link CreateApiKeyForm}. */
export interface CreateApiKeyFormProps {
    /** Organization slug used as the `org` field when creating the key. */
    readonly org: string;
    /**
     * Fired with the newly created API key after successful creation.
     * The `spec.keyHash` field of the returned key contains the raw
     * key value — available only at this moment.
     */
    readonly onCreated?: (apiKey: ApiKey) => void;
    /** Fired when the user cancels creation. */
    readonly onCancel?: () => void;
    /** Additional CSS class names for the root container. */
    readonly className?: string;
}
/**
 * Compact form for creating a new API key.
 *
 * Collects a **name** (required) and an **expiry** choice (30 / 60 /
 * 90 days or never), then creates the key via {@link useCreateApiKey}.
 * On success it fires `onCreated` with the full {@link ApiKey}
 * response, which includes the raw key in `spec.keyHash`.
 *
 * All visual properties flow through `--stgm-*` design tokens.
 *
 * @example
 * ```tsx
 * <CreateApiKeyForm
 *   org="acme"
 *   onCreated={(key) => setRevealedKey(key)}
 *   onCancel={() => setShowForm(false)}
 * />
 * ```
 */
export declare function CreateApiKeyForm({ org, onCreated, onCancel, className, }: CreateApiKeyFormProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=CreateApiKeyForm.d.ts.map