import { type IdentityTokens } from "./auth0.js"; import { type ResolvedWorkspace } from "./workspace.js"; export declare const DEFAULT_BASE_URL = "https://api.getcargo.io"; export declare function resolveBaseUrl(override: string | undefined): string; /** * Picks the workspace to work in and stores the signed-in session. Every * sign-in channel ends here, so the credentials file looks the same however * the user signed in. * * The access token is short-lived and deliberately not treated as the * credential: the refresh token beside it is what keeps the CLI signed in, and * it is renewed on demand rather than by minting an API token per machine. */ export declare function establishSession(opts: { tokens: IdentityTokens; /** Raw --base-url, so the default is not written to the credentials file. */ baseUrlOverride: string | undefined; workspaceUuid: string | undefined; workspaceName: string | undefined; }): Promise; //# sourceMappingURL=session.d.ts.map