[READ-ONLY] Mirror of https://github.com/flo-bit/svelte-cloudflare-statusphere.
statusphere.atmo.tools
atproto
cloudflare-workers
oauth
svelte
790 B
32 lines
1// See https://svelte.dev/docs/kit/types#app.d.ts
2// for information about these interfaces
3import type { OAuthSession } from '@atcute/oauth-node-client';
4import type { Client } from '@atcute/client';
5import type { Did } from '@atcute/lexicons';
6
7declare global {
8 namespace App {
9 // interface Error {}
10 interface Locals {
11 session: OAuthSession | null;
12 client: Client | null;
13 did: Did | null;
14 }
15 // interface PageData {}
16 // interface PageState {}
17 interface Platform {
18 env: {
19 OAUTH_SESSIONS: KVNamespace;
20 OAUTH_STATES: KVNamespace;
21 CLIENT_ASSERTION_KEY: string;
22 COOKIE_SECRET: string;
23 OAUTH_PUBLIC_URL: string;
24 PROFILE_CACHE?: KVNamespace;
25 };
26 }
27 }
28}
29import type {} from '@atcute/atproto';
30import type {} from '@atcute/bluesky';
31
32export {};