import { z } from '@struktoai/mirage-core/resource/secrets'; import type { ConfigOf, RedactedConfig } from '@struktoai/mirage-core/resource/secrets'; export declare const HF_ENDPOINT = "https://huggingface.co"; export declare function assertHfRepoId(value: string, field: string): string; /** * Either spelling the Hub itself accepts for a repository. * * A repo id is `namespace/name` or a bare `name`, and the second resolves * against whoever the token belongs to. That is not a convenience: * `hf repo create widget` followed by `hf download widget` is what the real * CLI produces, and refusing the bare form made mirage reject an id the Hub * had just minted. What is refused is a shape the Hub has no reading for: an * empty segment, or more than one slash. * * A BUCKET keeps the stricter rule (`assertHfRepoId`): the Buckets API has no * namespace-from-token step, so a bare bucket name addresses nothing. */ export declare function assertHfRepoRef(value: string, field: string): string; export interface HfBucketsConfig { bucket: string; token?: string; endpoint?: string; timeoutMs?: number; keyPrefix?: string; } declare const HfBucketsConfigSchema: z.ZodObject<{ bucket: z.ZodString; token: z.ZodOptional; endpoint: z.ZodOptional; timeoutMs: z.ZodOptional; keyPrefix: z.ZodOptional; }, z.core.$strip>; export type HfBucketsConfigRedacted = RedactedConfig, 'token'>; export declare function redactHfBucketsConfig(config: HfBucketsConfig): HfBucketsConfigRedacted; export declare function normalizeHfBucketsConfig(input: Record): HfBucketsConfig; export interface HfRepoConfig { repoId: string; token?: string; endpoint?: string; timeoutMs?: number; keyPrefix?: string; revision?: string; expandCommits?: boolean; } declare const HfRepoConfigSchema: z.ZodObject<{ repoId: z.ZodString; token: z.ZodOptional; endpoint: z.ZodOptional; timeoutMs: z.ZodOptional; keyPrefix: z.ZodOptional; revision: z.ZodOptional; expandCommits: z.ZodOptional; }, z.core.$strip>; export type HfRepoConfigRedacted = RedactedConfig, 'token'>; export declare function redactHfRepoConfig(config: HfRepoConfig): HfRepoConfigRedacted; export declare function normalizeHfRepoConfig(input: Record): HfRepoConfig; export {}; //# sourceMappingURL=config.d.ts.map