Mooizz's picture
Upload folder using huggingface_hub
1070765 verified
import type { CredentialsParams, RepoDesignation, SpaceSdk } from "../types/public";
export declare function createRepo(params: {
repo: RepoDesignation;
/**
* If unset, will follow the organization's default setting. (typically public, except for some Enterprise organizations)
*/
private?: boolean;
resourceGroupId?: string;
/**
* Does not work for buckets
*/
license?: string;
/**
* Only a few lightweight files are supported at repo creation - and not for buckets
*/
files?: Array<{
content: ArrayBuffer | Blob;
path: string;
}>;
/** @required for when {@link repo.type} === "space" */
sdk?: SpaceSdk;
hubUrl?: string;
/**
* Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
*/
fetch?: typeof fetch;
} & CredentialsParams): Promise<{
repoUrl: string;
id: string;
}>;
//# sourceMappingURL=create-repo.d.ts.map