UNPKG

@adventurelabs/scout-core

Version:

Core utilities and helpers for Adventure Labs Scout applications

12 lines (11 loc) 801 B
import { SupabaseClient } from "@supabase/supabase-js"; import { Database } from "../types/supabase"; /** * Generates a signed URL for a file in Supabase storage * @param filePath - The path to the file in storage (e.g., "events/123/image.jpg") * @param expiresIn - Number of seconds until the URL expires (default: 12 hours) * @param supabaseClient - Optional Supabase client (will create new one if not provided) * @returns Promise<string | null> - The signed URL or null if error */ export declare function generateSignedUrl(filePath: string, expiresIn?: number, supabaseClient?: SupabaseClient<Database>): Promise<string | null>; export declare function generateSignedUrlsBatch(filePaths: string[], expiresIn?: number, supabaseClient?: SupabaseClient<Database>): Promise<(string | null)[]>;