import { FetcherOptions } from "../fetcher.js"; import { CMSEndpoint } from "../cms/createIntlayerCMS.js"; import "../index.js"; /** Codeberg (Forgejo) repositories of the linked account. */ export declare const getCodebergAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: import("@intlayer/types/config").IntlayerConfig) => { getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise; checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<{ message?: string; description?: string; success: boolean; status: number; data: { hasConfig: boolean; configPaths: string[]; } | null; error?: import("@intlayer/backend-contract/responseData").ErrorData | import("@intlayer/backend-contract/responseData").ErrorData[]; }>; getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<{ message?: string; description?: string; success: boolean; status: number; data: { content: string; } | null; error?: import("@intlayer/backend-contract/responseData").ErrorData | import("@intlayer/backend-contract/responseData").ErrorData[]; }>; }; /** * Authenticated `codeberg` endpoint bound to an Intlayer CMS authenticator. * * Pass an authenticator created with `createIntlayerCMS`, or omit it to use * the build-time configuration (`@intlayer/config/built`). */ export declare const codebergEndpoint: CMSEndpoint<{ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise; checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<{ message?: string; description?: string; success: boolean; status: number; data: { hasConfig: boolean; configPaths: string[]; } | null; error?: import("@intlayer/backend-contract/responseData").ErrorData | import("@intlayer/backend-contract/responseData").ErrorData[]; }>; getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<{ message?: string; description?: string; success: boolean; status: number; data: { content: string; } | null; error?: import("@intlayer/backend-contract/responseData").ErrorData | import("@intlayer/backend-contract/responseData").ErrorData[]; }>; }>; //# sourceMappingURL=codeberg.d.ts.map