mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-23 14:10:42 -05:00
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
// See https://kit.svelte.dev/docs/types#app
|
|
// for information about these interfaces
|
|
declare global {
|
|
interface Window {
|
|
tether?: {
|
|
version: 1;
|
|
isFocused?(): Promise<boolean>;
|
|
focus?(): Promise<void>;
|
|
onEvent?(
|
|
callback: (
|
|
event:
|
|
| import('$lib/stores').TetherEvent
|
|
| { type: 'theme:update'; data: { theme: 'system' | 'light' | 'dark' } }
|
|
) => Promise<void>
|
|
): () => void;
|
|
signedIn(token: string): Promise<{ token: string; expiresAt: number | null }>;
|
|
refresh(force?: boolean): Promise<{ token: string; expiresAt: number | null } | null>;
|
|
signedOut(): Promise<void>;
|
|
onToken(
|
|
callback: (access: { token: string; expiresAt: number | null } | null) => void
|
|
): () => void;
|
|
};
|
|
}
|
|
|
|
class AudioWorkletProcessor {
|
|
readonly port: MessagePort;
|
|
}
|
|
function registerProcessor(name: string, processor: typeof AudioWorkletProcessor): void;
|
|
|
|
const APP_VERSION: string;
|
|
const APP_BUILD_HASH: string;
|
|
const APP_BUILD_CHANNEL: 'main' | 'dev' | 'unknown';
|
|
|
|
namespace App {
|
|
interface PageState {
|
|
inbox?: boolean;
|
|
inboxUserId?: string;
|
|
}
|
|
// interface Error {}
|
|
// interface Locals {}
|
|
// interface PageData {}
|
|
// interface Platform {}
|
|
}
|
|
}
|
|
|
|
export {};
|