export declare const readFileBasedToken: () => { token: string; path: string; } | null; /** * Resolves the API token to use for authentication with the Meticulous API. * * The resolution order is as follows: * 1. Explicit apiToken parameter (e.g. from CLI flag) * 2. METICULOUS_API_TOKEN environment variable * 3. Legacy ~/.meticulous/config.json file * * This function does NOT check for OAuth tokens. Use getAuthToken for that functionality. */ export declare const getApiToken: (apiToken: string | null | undefined) => string | null; /** * Async version of getApiToken that also checks for OAuth tokens. * * Resolution order: * 1. Explicit apiToken parameter (CLI flag) * 2. OAuth access token (with auto-refresh) * 3. METICULOUS_API_TOKEN env var * 4. Legacy ~/.meticulous/config.json * * OAuth is preferred over the env var / legacy config file so that a logged-in * user is used unless they explicitly `meticulous auth logout`. An explicit * `--apiToken` still wins over everything. The chosen source is logged at debug * (`meticulous auth whoami` surfaces it at info). */ export declare const getAuthToken: (apiToken: string | null | undefined) => Promise; //# sourceMappingURL=api-token.utils.d.ts.map