import { z } from "zod"; export interface ForgejoRepo { readonly cloneUrl: string; readonly sshUrl: string; } export interface ForgejoTeam { readonly id: number; readonly permission: string; } export declare const forgejoHookSchema: z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; config: z.ZodRecord; events: z.ZodArray; active: z.ZodBoolean; }, z.core.$strip>; export type ForgejoHook = z.infer; export interface ForgejoApi { readonly findRepo: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; }) => Promise; readonly createRepo: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly ownerIsOrg: boolean; readonly name: string; readonly private: boolean; readonly autoInit: boolean; }) => Promise; readonly findUser: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly username: string; }) => Promise; readonly createUser: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly username: string; readonly email: string; readonly accountPassword: string; }) => Promise; readonly findOrg: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly org: string; }) => Promise; readonly createOrg: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly org: string; }) => Promise; readonly findTeam: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly org: string; readonly name: string; }) => Promise; readonly createTeam: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly org: string; readonly name: string; readonly permission: string; }) => Promise; readonly addTeamMember: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly teamId: number; readonly username: string; }) => Promise; readonly addTeamRepo: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly teamId: number; readonly org: string; readonly name: string; }) => Promise; readonly listHooks: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; }) => Promise; readonly createHook: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; readonly type: string; readonly config: Readonly>; readonly events: readonly string[]; }) => Promise; readonly updateHook: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; readonly id: number; readonly config: Readonly>; readonly events: readonly string[]; }) => Promise; readonly latestCommit: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; readonly branch: string; }) => Promise; readonly readFile: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; readonly branch: string; readonly path: string; }) => Promise; readonly commitFile: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; readonly branch: string; readonly path: string; readonly content: string; readonly message: string; }) => Promise; readonly setRepoSecret: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; readonly secretName: string; readonly data: string; }) => Promise; readonly deleteRepo: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; }) => Promise; readonly deleteFile: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; readonly branch: string; readonly path: string; readonly message: string; }) => Promise; readonly deleteRepoSecret: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; readonly secretName: string; }) => Promise; readonly deleteHook: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly owner: string; readonly name: string; readonly id: number; }) => Promise; readonly deleteUser: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly username: string; }) => Promise; readonly deleteOrg: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly org: string; }) => Promise; readonly deleteTeam: (args: { readonly baseUrl: string; readonly user: string; readonly password: string; readonly teamId: number; }) => Promise; } export declare const forgejoApi: ForgejoApi; //# sourceMappingURL=forgejo-api.d.ts.map