mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 01:00:24 +08:00
23 lines
539 B
TypeScript
23 lines
539 B
TypeScript
export type LegacyPanelPlatform = 'desktop' | 'mobile';
|
|
|
|
export interface LegacyPanelSessionSource {
|
|
isActive(token: string, platform: LegacyPanelPlatform): Promise<boolean>;
|
|
}
|
|
|
|
export interface LegacyPanelTokenSnapshot {
|
|
value: string;
|
|
}
|
|
|
|
export interface LegacyPanelAuthSnapshot {
|
|
token?: string;
|
|
tokens?: Readonly<
|
|
Record<
|
|
string,
|
|
string | readonly LegacyPanelTokenSnapshot[] | null | undefined
|
|
>
|
|
>;
|
|
}
|
|
|
|
export type LegacyPanelAuthSnapshotReader =
|
|
() => Promise<Readonly<LegacyPanelAuthSnapshot> | null>;
|