import { type HfConfig } from './config.ts'; /** * The organization and name halves the repo endpoints take. * * The create and delete endpoints do not take a `namespace/name` id: they take * the two apart, and an id with no namespace means the caller's own, which the * Hub fills in from the token. */ export declare function splitRepoId(repoId: string): [string | null, string]; export interface CreateRepoOptions { repoType?: string; private?: boolean; spaceSdk?: string | undefined; /** * Treat the Hub's 409 as success, answering with the repository url * derived from the id rather than the one the create call would have * returned. */ existOk?: boolean; /** * The Enterprise resource group to create the repository in. Spelled * `resourceGroupId` on the wire, which is huggingface_hub's own spelling. */ resourceGroupId?: string | undefined; } /** Create a repository on the Hub. */ export declare function createRepo(config: HfConfig, repoId: string, options?: CreateRepoOptions): Promise>; /** Delete a repository from the Hub. */ export declare function deleteRepo(config: HfConfig, repoId: string, repoType?: string): Promise; /** Tag a revision of a repository. */ export declare function createTag(config: HfConfig, repoId: string, tag: string, repoType?: string, revision?: string, message?: string): Promise; /** Remove a tag from a repository. */ export declare function deleteTag(config: HfConfig, repoId: string, tag: string, repoType?: string): Promise; /** * Every tag on a repository. * * Read from /refs, which is the only endpoint that enumerates them; there is * no tag listing of its own. */ export declare function listTags(config: HfConfig, repoId: string, repoType?: string): Promise; //# sourceMappingURL=admin.d.ts.map