/** * Trail command — fetch or publish trails to the Principal ADE backend. * * Resolves a GitHub token locally (gh CLI → git credential helper) and calls * the web-ade trail API with `Authorization: Bearer `. The token is * never echoed to argv, env, stdout, or stderr. stdout is trail JSON (fetch) * or the share URL (publish) only. */ import { Command } from 'commander'; export declare const BASE_URL: string; export declare function resolveToken(): string | null; export declare function exitWithTokenError(): never; export declare function describeHttpError(response: Response): Promise; export declare function gitRemoteUrl(cwd: string): string | null; export declare function ownerRepoFromGitRemote(remoteUrl: string): { owner: string; name: string; } | null; export type ViewerLaunch = { kind: 'installed'; bin: string; } | { kind: 'source'; dir: string; }; export declare function resolveViewerLaunch(flag: string | undefined): ViewerLaunch; export declare function createTrailCommand(): Command; //# sourceMappingURL=trail.d.ts.map