import type { AuthFields } from '@salesforce/core'; import { Command, Interfaces, Hook } from '@oclif/core'; type HookOpts = { options: { Command: Command.Class; argv: string[]; commandId: string; }; return: T | undefined; }; export type OrgCreateResult = Pick; type PostOrgCreateOpts = HookOpts; /** * Extends OCLIF's Hooks interface to add types for hooks that run on org commands */ export type OrgHooks = { postorgcreate: PostOrgCreateOpts; } & Interfaces.Hooks; export type OrgHook = (this: Hook.Context, options: T extends keyof Interfaces.Hooks ? OrgHooks[T] : T) => any; export declare namespace OrgHook { type PostOrgCreate = Hook; } export {};