Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

1.9 KB
Raw Blame
/// <reference types="vite/client" />
/// <reference types="vite/types/importMeta.d.ts" />

declare const __APP_VERSION__: string;

type ImportMetaEnv = {
  readonly KANEO_API_URL: string;
  readonly VITE_SENTRY_DSN?: string;
};

type ImportMeta = {
  readonly env: ImportMetaEnv;
};

interface CookieStoreCookie {
  name: string;
  value: string;
  domain?: string;
  path?: string;
  expires?: number;
  maxAge?: number;
  secure?: boolean;
  httpOnly?: boolean;
  sameSite?: "Strict" | "Lax" | "None";
  priority?: "Low" | "Medium" | "High";
}

interface CookieStore {
  get(name: string): Promise<CookieStoreCookie | null>;
  getAll(name?: string): Promise<CookieStoreCookie[]>;
  set(cookie: {
    name: string;
    value: string;
    domain?: string;
    path?: string;
    expires?: number;
    maxAge?: number;
    secure?: boolean;
    httpOnly?: boolean;
    sameSite?: "Strict" | "Lax" | "None";
    priority?: "Low" | "Medium" | "High";
  }): Promise<void>;
  delete(
    name: string,
    options?: { path?: string; domain?: string },
  ): Promise<void>;
}

declare const cookieStore: CookieStore;

interface CookieStoreCookie {
  name: string;
  value: string;
  domain?: string;
  path?: string;
  expires?: number;
  maxAge?: number;
  secure?: boolean;
  httpOnly?: boolean;
  sameSite?: "Strict" | "Lax" | "None";
  priority?: "Low" | "Medium" | "High";
}

interface CookieStore {
  get(name: string): Promise<CookieStoreCookie | null>;
  getAll(name?: string): Promise<CookieStoreCookie[]>;
  set(cookie: {
    name: string;
    value: string;
    domain?: string;
    path?: string;
    expires?: number;
    maxAge?: number;
    secure?: boolean;
    httpOnly?: boolean;
    sameSite?: "Strict" | "Lax" | "None";
    priority?: "Low" | "Medium" | "High";
  }): Promise<void>;
  delete(
    name: string,
    options?: { path?: string; domain?: string },
  ): Promise<void>;
}