// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
// and what to do when importing types
declare namespace App {
    interface Locals {
        userid: string;
    }
    // interface PageData {}
    // interface Error {}
    // interface Platform {}
}

declare const __BUILD_TIME__: string;
declare const __BUILD_VERSION__: string;

declare global {
    namespace App {
        interface Platform {}
    }

    interface Window {
        native_app: any;
    }

    // eslint-disable-next-line no-var
    var native_app: any;
}

// Stripe Buy Button web component — needed so Svelte templates accept the element without TS errors.
declare module 'svelte/elements' {
    interface IntrinsicElements {
        'stripe-buy-button': {
            'buy-button-id': string;
            'publishable-key': string;
            'client-reference-id'?: string;
            [attr: string]: any;
        };
    }
}
