import { type Config } from './schema.js';
export declare function resolveConfigPath(explicitPath?: string): string | null;
export declare function loadConfig(explicitPath?: string): Config;
export declare function getGithubTokenSource(): {
    token: string;
    source: 'gh-keyring' | 'env';
} | null;
export declare function getGithubToken(): string;
export declare function getWebhookSecret(): string;
export declare function getWebhookSecretPath(): string;
export declare function detectGitHubLogin(): string | null;
export declare function patchAllowedAuthors(configPath: string, login: string): boolean;
export declare function patchAuthorRoutes(configPath: string, login: string): boolean;
export declare function promptDeploymentMode(current?: 'personal' | 'team'): Promise<'personal' | 'team'>;
export declare function detectScopesForDeployment(deployment: 'personal' | 'team', token: string): Promise<{
    login: string;
    users: string[];
    orgs: string[];
}>;
export declare function patchDeploymentConfig(configPath: string, deployment: 'personal' | 'team', login: string, orgs: string[], force?: boolean): boolean;
export interface OnboardAnswers {
    deployment: 'personal' | 'team';
    login: string;
    orgs: string[];
    users: string[];
    repos: Array<{
        owner: string;
        name: string;
    }>;
    allowedAuthors: string[];
    authorRoutes: Record<string, 'claude' | 'codex'>;
    deliveryMode: 'pull_request' | 'commit' | 'comment';
    brand: {
        service_name: string;
        comment_header: string;
        comment_footer: string;
        reviewer_attribution: string;
    };
}
export declare function writeOnboardConfig(configPath: string, answers: OnboardAnswers): void;
export declare function patchBrandConfig(configPath: string, brand: Partial<{
    service_name: string;
    comment_header: string;
    comment_footer: string;
    reviewer_attribution: string;
}>): boolean;
//# sourceMappingURL=loader.d.ts.map