import { Config } from './types';
export declare function mergeNullDelimited(stdout: string): void;
export declare function sourceShellProfile(profiles?: string[]): void;
/**
 * Merges env vars from a global extend file and a local project file into
 * process.env.  Priority order (highest → lowest):
 *   1. process.env (already-set shell variables — never overwritten)
 *   2. local .env.aidev values
 *   3. AIDEV_ENV_EXTEND file values (global base)
 *
 * `envExtend` can be supplied explicitly (e.g. from process.env.AIDEV_ENV_EXTEND
 * set by sourceShellProfile) OR discovered inside the local file itself.
 */
/**
 * Resolves a path that may be absolute, `~/…`, or relative.
 * Relative paths are resolved against `relativeBase` (the directory of the
 * local env file, or CWD when the path comes from the shell environment).
 */
export declare function resolveEnvPath(rawPath: string, relativeBase: string): string;
export declare function applyEnvFiles(localPath: string | undefined, envExtend?: string): void;
/**
 * Parse a comma-separated `ANTHROPIC_API_KEY` value into a list of tokens.
 * Trims whitespace and drops empty entries so trailing commas / blank slots
 * don't introduce phantom tokens.
 */
export declare function parseAnthropicTokens(raw: string): string[];
/**
 * Round-robin token selector. Returns the token at `cursor` and the next
 * cursor position. When the list is empty, `token` is `undefined` and the
 * cursor stays at 0.
 */
export declare function pickNextToken(tokens: string[], cursor: number): {
    token: string | undefined;
    nextCursor: number;
};
export declare function loadConfig(customEnvPath?: string): Config;
//# sourceMappingURL=config.d.ts.map