export { ApiClientConfig, ApiError, SwaggerUiHtmlOptions, apiGet, apiPatch, apiPost, apiRequest, configureApiClient, getApiClientConfig, swaggerUiHtml } from './index.client-core.js';
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as React from 'react';
import * as hazo_core_i18n from 'hazo_core/i18n';
export { A as ApiKey, a as ApiKeyValidator, b as AuthMode, E as EnvelopeResponse, c as ErrorBody, d as ErrorCode, F as FailResponse, H as HttpMethod, I as IssuedApiKey, O as OkResponse, e as OpenAPIObject, P as PermissionFailureDetails, R as ResponseMeta, f as RouteDefinition, g as RouteResponseSpec } from './permission_failure-BVs18ugU.js';
import 'zod';
interface ScopeOption {
value: string;
label: string;
description?: string;
}
interface ScopesFieldCustomContext {
selected: string[];
onChange: (next: string[]) => void;
}
type ScopesFieldConfig = {
mode: 'text';
} | {
mode: 'hidden';
} | {
mode: 'catalog';
options: ScopeOption[];
label?: string;
} | {
mode: 'custom';
label?: string;
render: (ctx: ScopesFieldCustomContext) => React.ReactNode;
};
interface ApiKeyManagerProps {
api_base: string;
on_error?: (err: Error) => void;
className?: string;
scopes_field?: ScopesFieldConfig;
/**
* UUID of the user the issued key should be bound to. Supplied by the
* consuming app (typically from session) — no end-user input required.
* Omit to issue an unbound key.
*/
user_id?: string;
}
declare function ApiKeyManager({ api_base, on_error, className, scopes_field, user_id }: ApiKeyManagerProps): react_jsx_runtime.JSX.Element;
interface ApiPlaygroundTableColumn {
key: string;
label: string;
editable?: boolean;
}
interface ApiPlaygroundTableComponentProps {
columns: Array;
rows: Array>;
onRowsChange: (rows: Array>) => void;
}
interface ApiPlaygroundProps {
endpoint: string;
title?: string;
description?: string;
defaultInput?: string;
tableComponent?: React.ComponentType;
}
declare function ApiPlayground({ endpoint, title, description, defaultInput, tableComponent: TableComponent, }: ApiPlaygroundProps): react_jsx_runtime.JSX.Element;
/**
* i18n bridge for hazo_api's own baked-in user-facing strings.
*
* hazo_api's only shipped UI is `` (client component) — the
* rest of the package is server-side HTTP plumbing with no rendered text.
* `createPackageT` (from `hazo_core/i18n`, the canonical bridge shared by
* every `hazo_*` package) does a flat, literal-dotted-key lookup against
* the bundled English fallback catalog and never depends on `hazo_i18n`
* being installed — see `hazo_core/src/i18n/index.ts` for the full
* optional-peer/graceful-degradation contract.
*/
declare const t: hazo_core_i18n.TFunc;
export { ApiKeyManager, type ApiKeyManagerProps, ApiPlayground, type ApiPlaygroundProps, type ApiPlaygroundTableColumn, type ApiPlaygroundTableComponentProps, type ScopeOption, type ScopesFieldConfig, type ScopesFieldCustomContext, t };