import Core from "../interfaces/core"; import { List, ListOption, Session, SessionParams } from "../types"; import BaseResource from "./base"; export default class SessionsResource extends BaseResource implements Core { constructor(apiKey: string, maxRetries: number, timeout: number); /** Creates a new Session */ create(params: SessionParams): Promise; /** Retrieves a Session. */ retrieve(id: string): Promise; /** * Expires an active session. * * Once expired, customers can no longer complete the session. * Any customer attempting to load the session will receive a message indicating that the session has expired. */ expire(id: string): Promise; /** Returns a list of Checkout Sessions. */ list(options?: ListOption): Promise>; }