export declare const TOKEN_ENV_VAR = "AGENTLINT_TOKEN"; export type GetEnvFn = (name: string) => string | undefined; export type ReadTokenFileFn = () => Promise; export interface ResolveTokenOptions { getEnv?: GetEnvFn; /** Explicit override (e.g. `--token ` from the CLI). */ flag?: string; /** Override the token-file reader for tests. */ readTokenFile?: ReadTokenFileFn; } /** * Resolve the agentlint project token. Precedence: * 1. `opts.flag` (the `--token` CLI override) * 2. `AGENTLINT_TOKEN` env var * 3. `~/.config/agentlint/token` (if mode 0600) * * Returns null when none of those produce a non-empty token. Never throws. */ export declare function resolveToken(opts?: ResolveTokenOptions): Promise; /** * Human-readable hint shown when no token is available. Centralized here so * the wording stays consistent between `--push` and `init`. */ export declare function missingTokenMessage(): string; //# sourceMappingURL=token.d.ts.map